package com.example.boss.db.gen;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by 打好boss on 2018/6/9.
 */
@Entity(indexes = {
        @Index(value = "date, date ASC", unique = true)
})

public class diaryList {
    @Id(autoincrement = true)
    private Long id;

    @NotNull
    private String date;  //记录时间
    @Property(nameInDb = "title")
    private String title;       //标题
    @NotNull
    @Property(nameInDb = "content")
    private String content;     //日记内容

    @Property(nameInDb = "tag")
    @NotNull
    private String tag;     //分类标签
    @NotNull
    @Property(nameInDb = "lock")
    private String lock;     //锁
public String getLock() {
        return this.lock;
}
public void setLock(String lock) {
        this.lock = lock;
}
public String getTag() {
        return this.tag;
}
public void setTag(String tag) {
        this.tag = tag;
}
public String getContent() {
        return this.content;
}
public void setContent(String content) {
        this.content = content;
}
public String getTitle() {
        return this.title;
}
public void setTitle(String title) {
        this.title = title;
}
public String getDate() {
        return this.date;
}
public void setDate(String date) {
        this.date = date;
}
public Long getId() {
        return this.id;
}
public void setId(Long id) {
        this.id = id;
}
@Generated(hash = 1593684953)
public diaryList(Long id, @NotNull String date, String title,
                @NotNull String content, @NotNull String tag,
                @NotNull String lock) {
        this.id = id;
        this.date = date;
        this.title = title;
        this.content = content;
        this.tag = tag;
        this.lock = lock;
}
@Generated(hash = 1883186848)
public diaryList() {
}


}
